package cc.customer.web.cRound;

import cc.customer.cRound.domain.CRoundLevel;
import cc.customer.cRound.service.CRoundLevelService;
import cc.customer.common.domain.ResponseBo;
import cc.customer.web.sys.controller.base.BaseController;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="cRoundLevel")
public class CRoundLevelController extends BaseController {

    @Autowired
    private CRoundLevelService cRoundLevelService;


    /**新增轮次等级*/
    @RequestMapping(value = "addNewLevel")
    @ResponseBody
    public ResponseBo addNewLevel(CRoundLevel level){
        return cRoundLevelService.addNewLevel(level);
    }


    /**查部门配置的人员**/
    @RequestMapping(value = "getUserInfoById")
    @ResponseBody
    public ResponseBo getUserInfoById(CRoundLevel level){
        return cRoundLevelService.getUserInfoById(level);
    }

}
